//
//  DYZMySourceCell.m
//  DYZCars
//
//  Created by MF on 16/8/20.
//  Copyright © 2016年 MF. All rights reserved.
//

#import "DYZMySourceCell.h"
#import "DYZMySourceInfo.h"

@interface DYZMySourceCell ()
@property (weak, nonatomic) IBOutlet UILabel *typeLabel;
@property (weak, nonatomic) IBOutlet UILabel *colorSaleLabel;
@property (weak, nonatomic) IBOutlet UILabel *masterLabel;
@property (weak, nonatomic) IBOutlet UILabel *dealLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@end

@implementation DYZMySourceCell

- (void)awakeFromNib {
    // Initialization code
}

-(void)setSourceInfo:(DYZMySourceInfo *)sourceInfo {
    _sourceInfo = sourceInfo;
    self.typeLabel.text = sourceInfo.type;
    self.colorSaleLabel.text = [[sourceInfo.color stringByAppendingString:sourceInfo.now] stringByAppendingString:sourceInfo.saleRegion];
    self.masterLabel.text = sourceInfo.master;
    self.priceLabel.text = [sourceInfo.dealPrice stringByAppendingString:sourceInfo.preferenPrice];
    self.timeLabel.text = sourceInfo.time;
    self.dealLabel.text = sourceInfo.dealPrice;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
